import request from '@/utils/request'

// 店铺统计数据
export function countData(data) {
  return request({
    url: '/user/shop/user/countData',
    method: 'post',
    data
  })
}
// 商家商品统计
export function shopGoodsCount(data) {
  return request({
    url: '/user/shop/goods/count',
    method: 'post',
    data
  })
}
// 获取商户订单统计数据
export function shopOrderStatistics(data) {
  return request({
    url: '/user/shop/order/getShopOrderStatistics',
    method: 'post',
    data
  })
}
// 心愿单排行
export function collectRanking(data) {
  return request({
    url: '/user/shop/goods/collectRanking',
    method: 'post',
    data
  })
}
// 申请新品
export function shopGoodsApply(data) {
  return request({
    url: '/user/shop/goods/apply',
    method: 'post',
    data
  })
}
// 申请新品
export function shopGoodsKind(data) {
  return request({
    url: '/user/type/detail',
    method: 'post',
    data
  })
}
// 查询地址
export function queryUserAddressList(data) {
  return request({
    url: '/user/shop/user/queryUserAddressList',
    method: 'post',
    data
  })
}
// 修改地址
export function editOrSaveUserAddress(data) {
  return request({
    url: '/user/shop/user/editOrSaveUserAddress',
    method: 'post',
    data
  })
}
// 上架商品条件搜索
export function goodsPlat(data) {
  return request({
    url: '/user/shop/goods/plat',
    method: 'post',
    data
  })
}

// 添加商品需要展示数据
export function addDetail(data) {
  return request({
    url: '/user/shop/goods/addDetail',
    method: 'post',
    data
  })
}

// 商品7日内成交价
export function buyPrice(data) {
  return request({
    url: '/user/shop/goods/buyPrice',
    method: 'post',
    data
  })
}

// (添加/修改)商品
export function goodsSave(data) {
  return request({
    url: '/user/shop/goods/save',
    method: 'post',
    data
  })
}

// 商品修改回显数据
export function editDetail(data) {
  return request({
    url: '/user/shop/goods/editDetail',
    method: 'post',
    data
  })
}

// 修改商品状态、价格
export function editStatus(data) {
  return request({
    url: '/user/shop/goods/editStatus',
    method: 'post',
    data
  })
}

// 删除商品
export function goodsDelete(data) {
  return request({
    url: '/user/shop/goods/delete',
    method: 'post',
    data
  })
}

// 提现
export function withdrawByShop(data) {
  return request({
    url: '/user/shop/user/withdrawByShop',
    method: 'post',
    data
  })
}

// 查询余额变动明细
export function queryAvailableDeatil(data) {
  return request({
    url: '/user/shop/user/queryAvailableDeatil',
    method: 'post',
    data
  })
}

// 保存店铺信息
export function saveShopInfo(data) {
  return request({
    url: '/user/shop/user/saveShopInfo',
    method: 'post',
    data
  })
}

// 识别身份证信息
export function distinguish(data) {
  return request({
    url: '/user/shop/user/distinguish',
    method: 'post',
    data
  })
}

// 提交商家入驻信息
export function saveShopAuth(data) {
  return request({
    url: '/user/shop/user/saveShopAuth',
    method: 'post',
    data
  })
}

// 验证实名认证信息
export function vaildRealAuth(data) {
  return request({
    url: '/user/shop/user/vaildRealAuth',
    method: 'post',
    data
  })
}

// 获取商户信息
export function getShopInfo(data) {
  return request({
    url: '/user/shop/user/getShopInfo',
    method: 'post',
    data
  })
}
